<!--代码逻辑和样式库-->
<script src="./create-code.component.js"></script>
<style src="./create-code.scss" scoped lang="scss"></style>

<template>
  <div>
    <el-dialog :title="title" :visible.sync="showDialog" width="40%" @close="closeDialog()">
      <el-form ref="dataForm" :rules="editRules" :model="editForm" label-position="left" label-width="90px">
        <el-row :gutter="20">
          <el-col :span="24">
            <el-form-item prop="name" label="操作名称:">
              <el-input v-model="editForm.name" />
            </el-form-item>
            <el-form-item prop="permission" label="操作码:">
              <el-input v-model="editForm.permission" />
            </el-form-item>
            <el-form-item prop="uri" label="uri:">
              <el-input v-model="editForm.uri" />
            </el-form-item>
            <el-form-item prop="sort" label="排序:">
              <el-input v-model="editForm.sort" />
            </el-form-item>
            <el-form-item label="所属模块:">
              <el-input v-model="editForm.serviceName" disabled/>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
      <span slot="footer" class="dialog-footer">
        <el-button type="primary" :loading="loading" @click="save()">保存</el-button>
        <el-button @click="showDialog = false">关闭</el-button>
      </span>
    </el-dialog>
  </div>
</template>
